package com.haoxin.ai_course.modules.sys.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.haoxin.ai_course.modules.sys.entity.SysUserToken;

/**
 * 系统用户Token
 */
public interface SysUserTokenMapper extends BaseMapper<SysUserToken> {
	@Delete("delete  from sys_user_token ${ew.customSqlSegment} ")
	Integer removeAllToken(@Param(Constants.WRAPPER)QueryWrapper<SysUserToken> queryWrapper);
	@Select("select *   from sys_user_token ${ew.customSqlSegment} ")
	SysUserToken getTokenByUserId(@Param(Constants.WRAPPER)QueryWrapper<SysUserToken> qw);
	
}
